package com.ketai.service.impl;

import com.ketai.dao.ActityTypeDao;
import com.ketai.dao.impl.ActityTypeDaoImpl;
import com.ketai.pojo.ActivityType;
import com.ketai.service.ActityTypeService;

import javax.naming.NamingException;
import java.sql.SQLException;
import java.util.List;

/**
 * @Author:长沙科泰梦想学院-蓝色小药丸
 * @Mission:打造演说·创客型跨境电商与互联网人才
 * @Description:
 * @Date:Create In 2022/8/5 16:03
 **/
public class ActityTypeServiceImpl implements ActityTypeService {

    ActityTypeDao dao = new ActityTypeDaoImpl();
    @Override
    public List<ActivityType> getActivityTypeList () {
        try {
            return dao.getActivityTypeList();
        } catch (SQLException e) {
            e.printStackTrace();
        } catch (NamingException e) {
            e.printStackTrace();
        }
        return null;
    }
}
